<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <title>单选框和多选框</title>
    <link rel="stylesheet" href="../basestyle.css">
    <link rel="stylesheet" href="../icon.css">
    <link rel="stylesheet" href="./radio&CheckBox.css">
</head>
<body>
    <!--
    单选和多选通过获取单选框的checked值是否为真作为选中的判断
    -->
    <div class="cells__title">单选列表项</div>
    <div class="cells cells_radio">
        <label class="cell check__label" for="x11">
            <div class="cell__bd">
                <p>单选选项一</p>
            </div>
            <div class="cell__ft">
                <input type="radio" class="check" name="radio1" id="x11">
                <span class="icon-checked"></span>
            </div>
        </label>
        <label class="cell check__label" for="x12">
            <div class="cell__bd">
                <p>单选选项二</p>
            </div>
            <div class="cell__ft">
                <input type="radio" name="radio1" class="check" checked=checked id="x12">
                <span class="icon-checked"></span>
            </div>
        </label>
        <a href="javascript:void(0);" class="cell cell_link">
            <div class="cell__bd">添加更多</div>
        </a>
    </div>

    <div class="cells__title">复选列表项</div>
    <div class="cells cells_checkbox">
        <label class="cell check__label" for="s11">
            <div class="cell__hd">
                <input type="checkbox" class="check" name="checkbox1" id="s11" checked="checked">
                <i class="icon-checked"></i>
            </div>
            <div class="cell__bd">
                <p>多选选项一</p>
            </div>
        </label>
        <label class="cell check__label" for="s12">
            <div class="cell__hd">
                <input type="checkbox" name="checkbox1" class="check" id="s12">
                <i class="icon-checked"></i>
            </div>
            <div class="cell__bd">
                <p>多选选项二</p>
            </div>
        </label>
        <a href="javascript:void(0);" class="cell cell_link">
            <div class="cell__bd">添加更多</div>
        </a>
    </div>
</body>
</html>